//
//  DatePickerTableCell.m
//  StanfordEvents
//
//  Created by Gongmyung on 7/7/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "DatePickerTableCell.h"


@implementation DatePickerTableCell

@synthesize leftSideLabel;
@synthesize dateLabel;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
        // Initialization code
    }
    return self;
}


-(void)setSelected:(bool)selected animated:(bool)animated {
    //NSLog(@"nothing happens ha");
    //[super setSelected:selected animated:animated];//leave this empty so that nothing happens when the tableview tries to select/deselect the cell
}

-(void)turnMeOn {
    //NSLog(@"Cell turned on");
    [super setSelected:true animated:false];
    //you can have your tableviewcontroller/viewcontroller call this as needed to select
    
}

-(void)turnMeOff {
    //NSLog(@"Cell turned off");
    [super setSelected:false animated:false];
    //call this to deselect the cell
}

- (void)dealloc {
    [leftSideLabel release];
    [dateLabel release];
    [super dealloc];
}


@end
